﻿using Domain.Entity.Order_goods;
using Domain.Entity.System_operation;
using Domain.Entity.System_Ordermanagement;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.Order_goods
{
    public class Order_goodConfiger : IEntityTypeConfiguration<Order_good>
    {
        public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Order_good> builder)
        {
            builder.ToTable(nameof(Order_good));
            builder.HasKey(e => e.Order_goodsid);
            builder.Property(e => e.Order_goodsid).HasColumnType("bigint");
            builder.Property(e => e.Ord_id).HasColumnType("int");
            builder.Property(e => e.Ord_num).HasColumnType("int");
            builder.Property(e => e.Cg_id).HasColumnType("int");
            builder.Property(e => e.Cg_num).HasColumnType("int");
        }
    }
}
